//
//  headerMovieView.m
//  HuiWenMovie
//
//  Created by niceDay on 15/7/27.
//  Copyright (c) 2015年 computer. All rights reserved.
//

#import "headerMovieView.h"
#import "UIImageView+WebCache.h"
@implementation headerMovieView


- (void)awakeFromNib{
    
    
    
}


- (void)setModal:(headerModal *)modal{
    _modal =modal;
    [self setNeedsLayout];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    [_imageView sd_setImageWithURL:[NSURL URLWithString:_modal.image]];
    
    _titleCnlable.text = _modal.titleCn;
    
    _directorsLable.text = _modal.directors[0];
    
    _actorsLable.text = [NSString stringWithFormat:@"%@,%@,%@,%@,%@",_modal.actors[0],_modal.actors[1],_modal.actors[2],_modal.actors[3],_modal.actors[4]];
    
    _typeLable.text = [NSString stringWithFormat:@"%@, %@, %@, %@",_modal.type[0],_modal.type[1],_modal.type[2],_modal.type[3]];
    
    _releaseLable.text = [NSString stringWithFormat:@"%@  %@",_modal.releaseDic[@"location"],_modal.releaseDic[@"date"]];

    
    
}

@end
